import {
	createSSRApp
} from "vue"
import App from "./App.vue"
import * as Pinia from 'pinia' // uni-app 的 pinia 官方文档只支持用 2.0.33 的版本
import uviewPlus from 'uview-plus' // 文档地址 https://uiadmin.net/uview-plus/
import config from './uni-config.js'
export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia())
	app.use(uviewPlus)
	uni.$u.setConfig(config)
	return {
		app,
		Pinia
	}
}
